Companion

object Companion

Functions

Link copied to clipboard
fun create(failureThreshold: Int = 5, resetTimeoutMillis: Double = 30.seconds.inWholeMilliseconds.toDouble(), halfOpenSuccessThreshold: Int = 2, halfOpenMaxCalls: Int = 3): Promise<CircuitBreaker>

Creates a new circuit breaker.